package com.jy.controller;


import com.jy.common.ResultInfo;
import com.jy.entity.Carportsell;
import com.jy.service.ICarportsellService;
import com.jy.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 车位销售表 前端控制器
 * </p>
 *
 * @author xiexingxin
 * @since 2022-11-15
 */
@RestController
@RequestMapping("/carportsell")
public class CarportsellController {
    
    @Autowired
    private ICarportsellService iCarportsellService;
    
    @GetMapping("/selallcarportsell")
    public Result selllistinfo(){
        List<Carportsell> list = iCarportsellService.list();
        return list.size() > 0 ? Result.success(ResultInfo.SELECT_SUCCESS,list) : Result.failed(ResultInfo.SELECT_FAIL);
    }

}
